import request from "@/utils/request.js";

// 获取图书列表
export function getBookListService(params) {
    return request.get('/book', {params: params})
}

// 新增图书
export function addBookService(data) {
    return request.post('/book', data)
}

// 修改图书
export function updateBookService(data) {
    return request.put('/book', data)
}

// 删除审核
export const deleteBookService = (id) => {
    return request.delete(`/book/${id}`)
}

// 批量删除
export const deleteBookBatchService = (ids) => {
    return request.post('/book/deleteBatch', {ids})
}